import request from '@/utils/request'
export default {
  test() {
    return request({
      url: `/metaboservice/enrichanalyst/test`,
      method: 'get',
    })
  },
  GetConnection() {
    return request({
      url: `/metaboservice/enrichanalyst/GetConnection`,
      method: 'get',
    })
  },
  GetSessionData() {
    return request({
      url: `/metaboservice/enrichanalyst/GetSessionData`,
      method: 'get',
    })
  },
  EnrichCreateTable(cmd) {
    return request({
      url: `/metaboservice/enrichanalyst/EnrichCreateTable`,
      method: 'post',
      params: {
        cmd: cmd
      }
    })
  },
  GetCandidateList(cmd) {
    return request({
      url: `/metaboservice/enrichanalyst/EnrichGetCandidateList`,
      method: 'post',
      params: {
        cmd: cmd
      }
    })
  },
  SetCandidate(cmd) {
    return request({
      url: `/metaboservice/enrichanalyst/EnrichSetCandidate`,
      method: 'post',
      params: {
        cmd: cmd
      }
    })
  },
  SetCurrentMsetLib(cmd) {
    return request({
      url: `/metaboservice/enrichanalyst/CommonSet`,
      method: 'post',
      params: {
        cmd: cmd
      }
    })
  },
  EnrichCalculate(cmd) {
    return request({
      url: `/metaboservice/enrichanalyst/EnrichCalculate`,
      method: 'post',
      params: {
        cmd: cmd
      }
    })
  },
  CommonSet(cmd) {
    return request({
      url: `/metaboservice/enrichanalyst/CommonSet`,
      method: 'post',
      params: {
        cmd: cmd
      }
    })
  },
  cuculateByGfjAlgo(url) {
    return request({
      url: `/metaboservice/enrichbygfj/cuculate`,
      method: 'post',
      timeout: 5 * 60 * 1000,
      params: {
        url: url
      }
    })
  },
}